<?php

declare(strict_types=1);

use App\Model\Admin;
use Hyperf\Database\Seeders\Seeder;

class AdminTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Admin::create([
            'username' => 'admin',
            'email' => 'admin@admin.com',
            'status' => '1',
            'password' => password_hash(md5('admin@'.date('Y')),PASSWORD_BCRYPT)
        ]);
    }
}
